# 基础镜像使用Nginx
FROM nginx:latest
MAINTAINER wsx_xue@163.com
VOLUME /tmp
ENV LANG en_US.UTF-8
RUN rm /etc/nginx/conf.d/default.conf

# # # 将前端dist文件中的内容复制到镜像/usr/share/nginx/html/目录下
ADD default.conf /etc/nginx/conf.d/
# #将default.conf复制到/etc/nginx/conf.d/下，用本地的default.conf配置来替换nginx镜像里的默认配置
ADD dist/ /usr/share/nginx/html/

# # # 暴露端口
EXPOSE 80

